package tinynio;

import java.io.IOException;
import java.net.Socket;

import tinynio.Application.EndPoint;

public class Server {

	public static void main(String[] args) throws IOException {
		new Application(EndPoint.SERVER).config(new Configuration() {

			@Override
			public Handler handler() {
				return new LogHandler();
			}

			@Override
			public void configSocket(Socket socket) {

			}

			@Override
			public Codec codec() {
				return new StringCodec();
			}

		}).bind(8080);

		// System.out.println(UUID.randomUUID().toString().replace("-", ""));
	}

}
